package com.blyat.xsoft.gateway.restful.service.impl;

import com.blyat.xsoft.gateway.restful.entity.Role;
import com.blyat.xsoft.gateway.restful.mapper.AuthorityMapper;
import com.blyat.xsoft.gateway.restful.mapper.RoleMapper;
import com.blyat.xsoft.gateway.restful.service.RoleService;
import com.blyat.xsoft.kernel.restful.service.CrudService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author syh
 * @date 2019/10/21
 **/
@Service
public class RoleServiceImpl extends CrudService<Role, RoleMapper> implements RoleService {
    @Autowired
    AuthorityMapper authorityMapper;

    @Override
    public List<Role> getByUserId(String userId) {
        return mapper.getByUserId(userId);
    }
}
